home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
ItemSelectable.java
< prev
next >
Wrap
Text File
|
1998-09-22
|
1KB
|
50 lines
/*
* @(#)ItemSelectable.java 1.5 98/07/01
*
* Copyright 1995-1998 by Sun Microsystems, Inc.,
* 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
* All rights reserved.
*
* This software is the confidential and proprietary information
* of Sun Microsystems, Inc. ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with Sun.
*/
package java.awt;
import java.awt.event.*;
/**
* The interface for objects which contain a set of items for
* which zero or more can be selected.
*
* @version 1.5 07/01/98
* @author Amy Fowler
*/
public interface ItemSelectable {
/**
* Returns the selected items or null if no items are selected.
*/
public Object[] getSelectedObjects();
/**
* Add a listener to recieve item events when the state of
* an item changes.
* @param l the listener to recieve events
* @see ItemEvent
*/
public void addItemListener(ItemListener l);
/**
* Removes an item listener.
* @param l the listener being removed
* @see ItemEvent
*/
public void removeItemListener(ItemListener l);
}